import { request } from "@/api";
import { API } from "@/api/modules/dwh/typings";

/** getUserAuthColumn GET /userTable/getUserAuthColumn */
export async function getUserAuthColumnUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getUserAuthColumnUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.PlainResultUserAuthColumnVo>("/userTable/getUserAuthColumn", {
    method: "GET",
    params: {
      ...params
    },
    ...(options || {})
  });
}

/** pageUserAuthTable POST /userTable/pageUserAuthTable */
export async function pageUserAuthTableUsingPOST(body: API.PageRequest, options?: { [key: string]: any }) {
  return request<API.PageResultTableInfoVo>("/userTable/pageUserAuthTable", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}

/** saveUserCustomizedColumnInfo POST /userTable/saveUserCustomizedColumnInfo */
export async function saveUserCustomizedColumnInfoUsingPOST(
  body: API.CustomizedColumnInfoParam,
  options?: { [key: string]: any }
) {
  return request<API.PlainResultboolean>("/userTable/saveUserCustomizedColumnInfo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json"
    },
    data: body,
    ...(options || {})
  });
}
